<?
    session_start();
 
    if($_SESSION["admin"] != "admin1")
    { 
        echo "  <script language='javascript'>
                    alert('Please Login Admin!.');
                    window.location='../index.php';
                    </script>
            ";
        exit();
    }   
?>